#ifndef _GRID_H
#define _GRID_H

#include "mine.h"

struct sGrid
{
	
	Mine * boxes;
	int width;
	int height;
	int nMine;
	
};

typedef struct sGrid Grid;

int getMine(const Grid * game);

int getWidth(const Grid * game);

void setMine(Grid * game, int mines);

void setWidth(Grid * game, int width);

int getHeight(const Grid * game);

void setHeight(Grid * game, int height);

void initGrid(Grid * game);

void placeBombs(Grid * game);

int recupererCoordonnees(Grid * game);

int discoverGrid( Grid * game, int * x, int * y);

void decrementGrid(Grid * game);

int getRemain(Grid * game);

void destroyGrid(Grid * game);

void printGrid(const Grid * game);

int playGrid(Grid * game);

void countBombsNeighbor(Grid * game);

#endif
